package com.tenghu.sbm.rest;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.HashMap;
import java.util.Map;

/**
 * 消息结果响应实体
 * @author Arvin
 * @date 2017/12/9 14:00
 */
@ApiModel(value = "响应消息结果",description = "统一处理消息")
public class RestResponse extends AbsResponse{

    @ApiModelProperty(value = "复杂消息",name = "data",dataType = "Map")
    private Object data;

    public Object getData() {
        return data;
    }

    public RestResponse(String status, String message) {
        super(status, message);
    }

    public RestResponse setData(Object data) {
        this.data = data;
        return this;
    }

    public RestResponse() {
    }
}
